package cn.com.taiji.oospub.wechat.service.impl;

import cn.com.taiji.oospub.wechat.entity.SchoolImg;
import cn.com.taiji.oospub.wechat.mapper.SchoolImgMapper;
import cn.com.taiji.oospub.wechat.service.ISchoolImgService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Service
public class SchoolImgServiceImpl extends ServiceImpl<SchoolImgMapper, SchoolImg> implements ISchoolImgService {
    @Autowired
    private SchoolImgMapper schoolImgMapper;

    @Override
    public List<SchoolImg> findBySchoolId(String id) {
        QueryWrapper<SchoolImg> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("school_id", id);
        return schoolImgMapper.selectList(queryWrapper);
    }
}
